package com.spzx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName(value = "sku_stock")
@Schema(name = "商品SKU库存表")
public class SkuStock extends BaseEntity {
    @Schema(description = "商品SKUId")
    @TableField(value = "sku_id")
    private Long skuId;
    @Schema(description = "总库存数")
    @TableField(value = "total_num")
    private Integer totalNum;
    @Schema(description = "锁定库存数量")
    @TableField(value = "lock_num")
    private Integer lockNum;
    @Schema(description = "可用库存数量")
    @TableField(value = "available_num")
    private Integer availableNum;
    @Schema(description = "销量")
    @TableField(value = "sale_num")
    private Integer saleNum;
    @Schema(description = "线上状态:0:初始值;1:上架;-1:下架")
    @TableField(value = "status")
    private Short status;

}
